package com.ms.p2p.service.impl;

import com.ms.p2p.bean.PageBean;
import com.ms.p2p.dao.RedPacketDao;
import com.ms.p2p.dao.RedPacketLogDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chensk on 2017/11/22.
 */
@Service
public class RedPacketLogServiceImpl {
    @Autowired
    RedPacketLogDao readPacketLogDao;

    public List findPager(PageBean pageBean){
       return  readPacketLogDao.findPager(pageBean.getBegin(),pageBean.getPageSize());

    }


    public int findCount() {
        return readPacketLogDao.findCount();
    }
}
